Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

“not a valid constant name” errors

#2

(cut from the wiki on github):

If you get this error:

NameError ("Plugins::Restful-authentication::Lib" is not a valid constant name!)

...rename vendor/plugins/authentication-plugin to something without a hyphen character (like ‘authentication’ or ‘restful_authentication’).

Hopefully the maintainers will consider renaming this plugin.

Reported by mrflip · August 8th, 2008 @ 03:38 PM

State: hold
Milestone: none
Assigned to: mrflip mrflip

Activity

  1. mrflip
    mrflip

    The problem with renaming the github repository is that every watching user on github would have to un- and then re-subscribe to it -- and it is the second-most watched plugin.

    So, unless this can be fixed on the rails end I'm afraid everyone will have to just rename the restful-authentication folder to "restful_authentication" from now on.

    August 17th, 2008 @ 12:47 PM

  2. mrflip
    mrflip
    • State changed from new to hold

    August 14th, 2008 @ 12:26 PM

  3. cbs
    cbs

    ok, so what's are we supposed to do to make this work, please? I have just done a first-time install of the github into a virgin project to try this out and get the above whenever either raking or generating so if (1) renaming is necessary but (2) renaming is to be avoided, yet (3) the issue is on "hold", can someone enlighten me, please?

    Many Thanks, -cbs

    (ruby 1.8.6 p111, rails 2.1.0)

    August 17th, 2008 @ 12:32 PM

  4. mrflip
    mrflip

    Just rename the folder

    • vendor/plugins/authentication-plugin

    to have underscore (not dash):

    • vendor/plugins/authentication_plugin

    The bug is on 'hold' because we'd need to somehow get the several-hundred watchers, and who knows how many who have git remotes tied to this, to move to the new URL.

    (Oh, I just realized your confusion. The repository can't be renamed because of its many watchers. The folder on your machine you can do anything you like to. I've edited my comment above. So, to the Jetpack-Wearing People of the Future: cbs had every right to be confused by comment#2 as it originally stood.)

    August 17th, 2008 @ 01:04 PM

  5. cbs
    cbs

    thanks, mrflip, i'm getting much better now...

    August 17th, 2008 @ 01:43 PM

  6. Matt Jones
    Matt Jones

    This will finally be fixed in 2.2 final - commit http://github.com/rails/rails/co... fixes this problem (I tested it..)

    November 18th, 2008 @ 09:34 AM

  7. Andriy Tyurnikov
    Andriy Tyurnikov

    Having both repo names is an overkill? =)

    January 20th, 2009 @ 08:45 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.